#ifndef BT_GPIO_H_
#define BT_GPIO_H_

typedef enum{
	BT_STAUS_SHUTDOWN = 0x1001,
	BT_STAUS_ACCESS,
	BT_STAUS_LINK,
}bt_status_t;

typedef int (*bt_retfunc_t)(uint8_t * buffer, size_t len);

#define bt_wake_up()		ioctl(bt_fd, IOCTL_BT_WAKE_UP, NULL)
#define bt_advertising()	ioctl(bt_fd, IOCTL_BT_ADV, NULL)
#define bt_disconnect()		ioctl(bt_fd, IOCTL_BT_LINK_DROP, NULL)
#define bt_mode(mode)		ioctl(bt_fd, IOCTL_BT_MODE_CTL, mode)
#define bt_status()			ioctl(bt_fd, IOCTL_GET_BT_STATUS, NULL)

int bt_cmd_return(uint8_t * buffer, size_t len);
int handle_bt_at(char *argstr);
int bt_is_enable(void);

#endif /* BT_GPIO_H_ */
